package cn.ggb.eduservice.client;

import cn.ggb.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="service-vod")
@Component
public interface vodVideo {

    @DeleteMapping("/eduvod/video/removeAlyVideo/{id}")
    public R removeAlyVideo(@PathVariable("id") String id);

    //根据多个id删除多个阿里云视频
    @DeleteMapping("/eduvod/video/delete-batch")
    public R deleteBatch(@RequestParam List<String> videoIdList );
}
